<?php
namespace Ipartek\BlogBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;


/**
 * CategoriaAdmin
 *
 */
class CategoriaAdmin extends Admin{
	
	protected function configureFormFields(FormMapper $formMapper)
	{
		$formMapper
		->add('nombre')
		->add('descripcion')
		->add('orden')
		;
	}
	
	protected function configureDatagridFilters(DatagridMapper $datagridMapper)
	{
		$datagridMapper
		->add('nombre')
		->add('descripcion')
		->add('orden')
		;
	}
	
	protected function configureListFields(ListMapper $listMapper)
	{
		$listMapper
		->addIdentifier('nombre')
		->add('descripcion')
		->add('orden')
		;
	}

}